package cn.enilu.flash.bean.exception;

/**
 * @author qiang.lin
 * @ClassName ConfigException.java
 * @Description TODO
 * @createTime 2021年08月05日 10:16:00
 */
public class ConfigException extends RuntimeException {

    private Integer code;

    private String message;

    public ConfigException(ServiceExceptionEnum serviceExceptionEnum) {
        this.code = serviceExceptionEnum.getCode();
        this.message = serviceExceptionEnum.getMessage();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
